package com.newtouch.avmarketing.mongo.dao;


import com.newtouch.avmarketing.mongo.po.PolicyPo;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface InsurancePolicyRepo extends PagingAndSortingRepository<PolicyPo,String> {

    //通过保单号查询保单详情
    @Query("{'$and':[{'policyCode':?0},{'isValid':'0'}]}")
    PolicyPo findByPolicyCode(String PolicyCode);
}
